<?php

use Illuminate\Http\Request;
use Illuminate\Support\Facades\Route;

/*
|--------------------------------------------------------------------------
| API Routes
|--------------------------------------------------------------------------
|
| Here is where you can register API routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| is assigned the "api" middleware group. Enjoy building your API!
|
*/

Route::middleware('auth:sanctum')->get('/user', function (Request $request) {
    return $request->user();
});

Route::post('sendsms',[\App\Http\Controllers\Api\LoginController::class,'sendSms']);

Route::post('login',[\App\Http\Controllers\Api\LoginController::class,'login']);

Route::get('history',[\App\Http\Controllers\Api\UserController::class,'history']);

Route::get('search',[\App\Http\Controllers\Api\UserController::class,'search']);

Route::get('intomeeting',[\App\Http\Controllers\Api\UserController::class,'intoMeeting']);

Route::get('first',[\App\Http\Controllers\Api\UserController::class,'first']);

